package org.lanqiao.ssm.common.util;

import org.lanqiao.ssm.common.model.EasyuiModel;

import com.github.pagehelper.PageInfo;

public class ModelConvertUtil {
	public static <E> EasyuiModel<E> pageInfo2EasyuiModel(PageInfo<E> pageInfo) {
		return new EasyuiModel<E>(pageInfo.getPageNum(), pageInfo.getPageSize(), pageInfo.getList(),
				pageInfo.getPages(), pageInfo.getStartRow(), pageInfo.getTotal());
	}
}
